class NumberConfig:
    my_list = [1, 2, 3, 4, 5]

    one, two, three, four, five = my_list

    # one, two, three, four = 1, 2, 3, 4


def many_list():
    print(11)


def join_str():
    # 压缩字符串列表
    mylist = ["I learn", "Python", "JavaScript", "Dart"]
    string = " ".join(mylist)
    print(string)  # I learn Python JavaScript Dart


# *arg 的魔法
def func(*arg):
    num = 0
    for x in arg:
        num = num + x
    print(num)  # 600


if __name__ == '__main__':
    num = NumberConfig()
    print(num.five)
    join_str()
    func(100, 200, 300)
